# File Managed by Puppet

<VirtualHost *:80>
    ServerAdmin webmaster@<%= @name %>
    DocumentRoot <%= @real_documentroot %>
    ServerName <%= @name %>
<% if @aliases != "" -%>
<% if @aliases.is_a? Array -%>
    ServerAlias <%= @aliases.flatten.join(" ") %>
<% else -%>
    ServerAlias <%= @aliases %>
<% end -%>
<% end -%>
    ErrorLog  <%= scope.lookupvar('apache::log_dir')%>/<%= @name %>-error_log
    CustomLog <%= scope.lookupvar('apache::log_dir')%>/<%= @name %>-access_log common
</VirtualHost>
